#ifndef __IRENDERIZABLELIGHT_H__
#define __IRENDERIZABLELIGHT_H__

#include "CTypes.h"
#include "IMaterial.h"
#include "IRenderizableTransformation.h"

class IRenderizableLight : public IMaterial, public IRenderizableTransformation
{
public:
	f32 Position[LEN_VEC+1];
	f32 Direction[LEN_VEC+1];
	f32 CutOff;
public:
	IRenderizableLight()			{}
	virtual ~IRenderizableLight()	{}

	void Update(vector3dvpos Pos,vector3df32 Dir,f32 SpotCutOff)
	{
		// Refractorizar;
		Position[0] = (f32)Pos.X;
		Position[1] = (f32)Pos.Y;
		Position[2] = (f32)Pos.Z;
		Position[3] = 1.0f;

		Direction[0] = Dir.X;
		Direction[1] = Dir.Y;
		Direction[2] = Dir.Z;
		Direction[3] = 0.0f;

		CutOff = SpotCutOff;
	}
};

#endif
